/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.root {
  align-items: center;
  border: 1px solid $mid_grey;
  border-radius: 100px;
  color: $mid_grey;
  display: flex;
  font-family: $font_mono;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  letter-spacing: 0;
  padding: 0 12px;
  transition: $fadeDuration ease;

  svg {
    height: 16px;
    margin-right: 5px;
    width: 16px;

    path {
      transition: $fadeDuration ease;
    }
  }
  svg path {
    fill: $mid_grey;
  }

  &:hover {
    border: 1px solid $white;
    color: $white;

    svg path {
      fill: $white;
    }
  }
  &.filled {
    background: $mid_grey;
    border: 1px solid $mid_grey;
    color: $dark;

    svg path {
      fill: $dark;
    }
  }
}
